package com.wyd.api;

import com.github.pagehelper.PageInfo;
import com.wyd.entity.TcProduct;

import java.util.List;

public interface TcProductService {
	
	int save(TcProduct entity);

	int delete(Object key);

	int updateAll(TcProduct entity);

	int updateNotNull(TcProduct entity);

	int updateByExampleSelective(TcProduct entity,Object example);

	TcProduct selectByKey(Object key);

	List<TcProduct> selectByExample(TcProduct entity);

	List<TcProduct> selectByExample(Object example);

	List<TcProduct> selectAll();
	
	TcProduct selectByOther(TcProduct entity);
	
	PageInfo<TcProduct> selectPageList(Object example,int pageIndex,int pageSize);

	int selectCountByExample(Object example);

     PageInfo<TcProduct> selectPageByExample(Object example,int pageIndex,int pageSize);
}
